package com.chance.cc.crawler.prod.command.trigger.domain.news.xhs.notes;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.meta.core.bean.CrawlerMetaConstant;
import com.chance.cc.crawler.prod.command.job.domain.news.xhs.notes.XhsCommonCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.xhs.notes.XhsInitCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.xhs.notes.XhsSyncCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.xhs.notes.simple.XhsInitSimpleCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.xhs.notes.simple.XhsUserNotesSimpleCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.trigger.CommonCrawlerSchedulerTrigger;

/**
 * @author lt
 * @version 1.0
 * @date 2021-06-17 11:16:21
 * @email okprog@sina.com
 */
public class XhsUserNotesSimpleCrawlerTrigger extends CommonCrawlerSchedulerTrigger {

    public static void main(String[] args) {
        publishSimpleCrawlerJobTrigger(XhsInitSimpleCrawlerSchedulerJob.crawlerScheduler());
        publishSimpleCrawlerJobTrigger(XhsUserNotesSimpleCrawlerSchedulerJob.crawlerScheduler());

    }


    public static void publishSimpleCrawlerJobTrigger(CrawlerJob crawlerJob){
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                XhsCommonCrawlerSchedulerJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Simple,
                "",
                "小红书账户笔记采集测试");
    }
}
